package com.example.lib_base.base.util.event

class BaseEvent {
    var code: EventEnum
    var data: Any? = null
        private set

    constructor(code: EventEnum) {
        this.code = code
    }

    constructor(code: EventEnum, data: Any) {
        this.code = code
        this.data = data
    }

    fun setData(data: Any) {
        this.data = data
    }
}